//引入configureStore 创建store
import { configureStore } from "@reduxjs/toolkit";

// 引入reducer切片
import CityReducer from "./CitySliceReducer";
import UserReducer from "./UserSliceReducer";

//1.创建store
const store = configureStore({
  // 配置reducer 将用到的reducer函数配置到store中
  reducer: {
    CityReducer,
    UserReducer,
  },
});

//2.导出store
export default store;
